• 0 Votes
    7 Posts
    2k Views
    F
    @pierrot10 Hi, are you able to solve the issue?
  • 0 Votes
    3 Posts
    2k Views
    M
    okay cool, thanks very much for the reply. Will update the firmware
  • LoPy to LoPy tutorial (via LoRa)

    Getting Started lopy lora mode lopy lora nodes
    5
    0 Votes
    5 Posts
    3k Views
    E
    @bucknall Thank you so much for your help! I'm ashamed but It was all my fault. The LoRa antenna on one of the devices was not correctly wired, I'm using an extension cable ... I modified the script so to have pong sending back some info: Node A: from network import LoRa import socket import time lora = LoRa(mode=LoRa.LORA, frequency=915000000) s = socket.socket(socket.AF_LORA, socket.SOCK_RAW) s.setblocking(False) while True: rec = [s.recv(64).decode()] if "Ping" in rec[0].split(" "): print(rec[0]) s.send('Pong %s' % rec[0].split(" ")[-1]) time.sleep(5) Node B from network import LoRa import socket import time lora = LoRa(mode=LoRa.LORA, frequency=915000000) s = socket.socket(socket.AF_LORA, socket.SOCK_RAW) s.setblocking(False) x=0 while True: s.send('Ping %s' % x) time.sleep(5) x=x+1 print(s.recv(64).decode()) I can send the code via wifi on the LoPy with no needs of microsd card on the device. If the wifi connection drop or I close it, the LoRa communication keeps goig :) when I reconnect with wifi in the atom shell I can actually see the ping number growing. More post coming soon, but I'll make sure to check the wiring first ... I'm really excited! Thanks!
  • 0 Votes
    4 Posts
    2k Views
    robert-hhR
    @timeb The data returned by lora.mac() is a 8 byte binary quantity in a bytes object. These bytes may not be printable chars. And it is also not an integer, and can therefore not be printed with the %x specifier. If you want to print it in a ASCII-Hex representation, you have to convert that with ubinascii.hexlify, like you did, and print it with the %s specifier. The results is a string. How you further proceed with the data, is up to you. You could use the binary object or the string.
  • Receiving b"

    LoPy lopy lopy lora mode
    6
    0 Votes
    6 Posts
    1k Views
    T
    I am seeing a similar issue with my FiPy device (when using NB-IOT communications). I suspect the problem has something to do with the sockets code and not specifically LoRa. I am running the latest version of software on my FiPy.
  • No transmitted data between two Lopy's in LoRa mode

    LoPy lopy lora mode
    10
    0 Votes
    10 Posts
    3k Views
    B
    @assia Yes, I believe this fix came in 1.8.7 - so please update your firmware and give this another try! If in doubt and you run into an issue, it's always a good idea to check for a firmware update. Our board's are mature now but occasionally bugs are found and we aim to get them fixed asap! Cheers!